import DYRequest from '../index'

export const getTopMV = (offset, limit = 10) => {
    return DYRequest.get('/top/mv', {
        offset,
        limit
    })
}

/**
 * 请求 MV的播放地址
 * @param {number} id MV的id 
 */
export const getMVURL = (id) => {
    return DYRequest.get('/mv/url', {
        id
    })
}

/**
 * 请求 MV的详情
 * @param {number} mvid MV的id
 */
export const getMVDetail = (mvid) => {
    return DYRequest.get('/mv/detail', {
        mvid
    })
}

/**
 * 请求 MV的关联视频
 * @param {*} id MV的id
 */
export const getRelatedVideo = (id) => {
    return DYRequest.get('/related/allvideo', {
        id
    })
}